package com.linxianqin.springbootVue.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.linxianqin.springbootVue.manage.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lxq
 * @version 1.0
 * @description: 岗位表excel
 * @date 2020/12/16 10:03
 */
@Data
public class SysPostExcel implements Serializable {

    private static final long serialVersionUID=1L;
    @Excel(name = "序号", cellType = Excel.ColumnType.NUMERIC)
    private Integer index;

    @ApiModelProperty(value = "岗位ID")
    @JsonSerialize(using= ToStringSerializer.class)
    @TableId(value = "post_id", type = IdType.AUTO)
    private Long postId;

    /** 岗位编码 */
    @Excel(name = "岗位编码")
    private String postCode;

    /** 岗位名称 */
    @Excel(name = "岗位名称")
    private String postName;

    /** 岗位排序 */
    @Excel(name = "岗位排序")
    private String postSort;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    @Excel(name = "备注")
    private String remark;
}